package com.jiandian.configration;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 对象存储配置
 * @author lik
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "custom.oss")
@Component
public class OssConfig {
    @Value("${accessKey}")
    private String accessKey;
    @Value("${bucket}")
    private String bucket;
    @Value("${bucketName}")
    private String bucketName;
    @Value("${secretKey}")
    private String secretKey;
    @Value("${domain}")
    private String domain;
    @Value("${region}")
    private String region;
}
